<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户后台</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Access-Control-Allow-Origin" content="*"/>
    <meta http-equiv="Cache-Control" content="no-transform "/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/user/main.css"/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/user/base.css"/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/user/common.css"/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/user/u_common.css"/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/user/plans.css"/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/user/home.css"/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/user/poplogin.css"/>
    <link rel="stylesheet" href="__STATIC__/static/user/css/bootstrap.min.css">
    <link rel="stylesheet" href="__STATIC__/static/user/css/flexslider.css">
    <link rel="stylesheet" href="__STATIC__/static/user/css/jquery.fancybox.css">
    <link rel="stylesheet" href="__STATIC__/static/user/css/main.css">
    <link rel="stylesheet" href="__STATIC__/static/user/css/responsive.css">
    <link rel="stylesheet" href="__STATIC__/static/user/css/animate.min.css">
    <link rel="stylesheet" href="__STATIC__/static/user/css/font-icon.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
<style>
    #info{
        text-align: center;
        padding-top: 10%;
    }
</style>
<body>
<header>
    <div class="banner">
        <div class="nav navbar-inverse">
            <div class="container">
                <div class="navbar-header">
                    <a class="logo" href="../../index/index/all"><img src="__STATIC__/static/user/images/logo.png" alt=""></a>
                </div>
                <div class="collapse navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                    </ul>
                </div>
            </div>
        </div>
    </div>
</header>
<div id="main">
    <div class="bg-other user-head-info">
        <div class="user-info"><h3 class="user-name clearfix"><span><?php echo $user['name']?></span></h3>
            <p class="user-desc">这位同学很懒，木有签名的说～</p>
        </div>
    </div>
    <link rel="stylesheet" href="/tpl/Index/Static/css/animate2.0.css?3.9.5"/>
    <div class="wrap">
        <div class="slider">
            <link rel="stylesheet" href="/tpl/Index/Static/css/time-less.css?3.9.5"/>
            <div class="user-pic">
                <div class="user-pic-bg"></div>
                <img class='img' src="http://www.php.cn/static/images/user_avatar.jpg" alt="phpcn_u41400"/>
                <div class="set-btn"><a href="/member/set_user/base.html"><i class="icon-set"></i></a></div>
            </div>
            <ul>
                <li><a href="/member/41400.html" class="active"><i class="icon-home"></i><span>我的主页</span><b
                        class="icon-drop_right"></b></a></li>
                <li><a id="myclass" href="/member/41400/courses.html"><i class="icon-tick"></i><span>我的课程</span><b
                        class="icon-drop_right"></b></a></li>
                <!-- <li><a href="/member/41400/plans.html" ><i class="icon-plan"></i><span>路径</span><b class="icon-drop_right"></b></a></li> -->
                <li><a href="/member/41400/asks.html"><i class="icon-yuanwen"></i><span>学习记录</span><b
                        class="icon-drop_right"></b></a></li>
            </ul>
        </div>
        <div class="u-container page-home">
            <div id="notices">
                <div class="dyanmic-title-wrap"><p class="dynamic-title">我的信息</p></div>
                <div class="setup-coverLayer"></div>
            </div>
            <div id="info">
                <p>用户名：<input type="text" name="" value="<?php echo $user['name']?>" disabled></p>
                <p>EMAIL：<input type="text" name="" value="<?php echo $user['email']?>" disabled></p>
                <p>注册时间:<input type="text" name="" value="<?php echo $user['createtime']?>" disabled></p>
            </div>
        </div>
    </div>
</div>
<!-- footer -->
<footer class="section footer" style="background-color: #e3e3e3">
    <div class="footer-bottom">
        <div class="container">
            <div class="col-md-12">
                <p>
                <ul class="footer-share">
                    <li><a href="#"><i class="fa fa-wechat"></i></a></li>
                    <li><a href="#"><i class="fa fa-qq"></i></a></li>
                    <li><a href="#"><i class="fa fa-weibo"></i></a></li>
                    <li><a href="#"><i class="fa fa-phone"></i></a></li>
                </ul>
                </p>
                <p>© 2017 All rights reserved. All Rights Reserved<br>
                    <a href="http://www.cqgcxy.com:804/">重庆工程学院软件与计算机学院</a>版权所有</p>
            </div>
        </div>
    </div>
</footer>
<!-- footer -->
<!-- JS FILES -->
<script>
    $(function(){
        $('#myclass').click(function(){
            var username=$('#username').val();
            var password=$('#password').val();
            $.ajax({
                type: "post",
                url: "demo.php",
                data: {username:username,password:password},//提交到demo.php的数据
                dataType: "json",//回调函数接收数据的数据格式
                success: function(msg){
                    $('#info').empty();   //清空Text里面的所有内容
                    var data='';
                    if(msg!=''){
                        data = eval("("+msg+")");
                    }
                    $('#info').html("用户名为：" + data.username + ",密码为：" + data.password);
                    console.log(data);
                },
                error:function(msg){
                    console.log(msg);
                }
            });
        })
    })
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="__STATIC__/static/user/js/jsbootstrap.min.js"></script>
<script src="__STATIC__/static/user/js/jsjquery.flexslider-min.js"></script>
<script src="__STATIC__/static/user/js/jsjquery.fancybox.pack.js"></script>
<script src="__STATIC__/static/user/js/jsjquery.waypoints.min.js"></script>
<script src="__STATIC__/static/user/js/jsretina.min.js"></script>
<script src="__STATIC__/static/user/js/jsmodernizr.js"></script>
<script src="__STATIC__/static/user/js/jsmain.js"></script>
</body>
</html>